package com.bjpowernode.result;

import lombok.Getter;
import lombok.Setter;

public enum CodeEnum {

    OK(200, "成功"),
    FAIL(500, "失败"),
    LOGIN_ACT_NONE_EXIST(601, "登录账号不存在"),
    LOGIN_PWD_IS_ERROR(602, "登录密码错误"),

    LOGIN_TOKEN_EMPTY(901, "登录Token是空"),
    LOGIN_TOKEN_ILLEGAL(902, "登录Token不合法"),
    LOGIN_TOKEN_ERROR(903, "登录Token错误")
    ;

    @Setter
    @Getter
    private int code;

    @Setter
    @Getter
    private String msg;

    CodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
